cmake_minimum_required( VERSION 3.5.1 )

project(lab_5_corners)

set(compiler_options -Wall -Wextra -Wpedantic)


# Add libraries.
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)

add_executable(${PROJECT_NAME}
  main.cpp
  circle.h
  circle.cpp
  circle_estimator.h
  circle_estimator.cpp
  corner_detector.h
  corner_detector.cpp
  filters.h
  filters.cpp
  lab_5.h
  lab_5.cpp)

target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} Eigen3::Eigen)
target_compile_options(${PROJECT_NAME} PRIVATE ${compiler_options})
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD_REQUIRED ON CXX_STANDARD 17)
